/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package euclidesalgorithm;

/**
 *
 * @author atila
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
       EuclidesAlgorithm euclides = new EuclidesAlgorithm();
       long p = 5L;
       long q = 11L;
       long z = (p - 1) * (q - 1);
       long e = euclides.findE(z, p, q);
       long d = euclides.extendAlgorithm(e, z);
       System.out.print("p = " + p);
       System.out.print(", q = " + q);
       System.out.print(", n = " + (p * q));
       System.out.print(", z = " + z);
       System.out.print(", e = " + e);
       System.out.println(", d = " + d);
    }

}
